home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1997 July / macformat52.iso / mac / Shareware Plus / Developers / YAAF v1.0 alpha 1 / (Samples) / Test Programs / TestMultiWindow / main.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1997-04-14  |  692 b   |  45 lines

  1. /*    main.cpp
  2.  *
  3.  *        This is the actual core which makes this thing fly.
  4.  */
  5.  
  6. #include <string.h>
  7. #include <XApplication.h>
  8. #include <XWindow.h>
  9.  
  10.  
  11. /************************************************************************/
  12. /*                                                                        */
  13. /*    Main entry point                                                    */
  14. /*                                                                        */
  15. /************************************************************************/
  16.  
  17. /*    StartApplication
  18.  *
  19.  *        This starts up the application
  20.  */
  21.  
  22. XGAppCore *StartApplication(void)
  23. {
  24.     XGAppMultiWindow *aw;
  25.     
  26.     /*
  27.      *    Start application engine
  28.      */
  29.     
  30.     aw = new XGAppMultiWindow;
  31.     
  32.     /*
  33.      *    Start window
  34.      */
  35.  
  36.     XGWindow::Create(128);    
  37.     XGWindow::Create(129);    
  38.     
  39.     /*
  40.      *    Done. Return
  41.      */
  42.     
  43.     return aw;
  44. }
  45.